package com.ruoyi.logistic.service.impl;

import com.ruoyi.logistic.domain.City;
import com.ruoyi.logistic.domain.Province;
import com.ruoyi.logistic.mapper.CityMapper;
import com.ruoyi.logistic.mapper.ProvinceMapper;
import com.ruoyi.logistic.service.ProvinceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProvinceServiceImpl implements ProvinceService {
    @Autowired
    private ProvinceMapper provinceMapper;
    @Autowired
    private CityMapper cityMapper;
    @Override
    public List<Province> selectAll() {
        return provinceMapper.selectAll();
    }

    @Override
    public List<City> selectByProvince(Integer pid) {
        return cityMapper.selectByProvince(pid);
    }
}
